﻿using System;

namespace UI.Models.ShoppingCart
{
    [Serializable]
    public class CartItem
    {
        public CartItem()
        {
            Quantity = 1;
        }


        public int Quantity { get; set; }

        public bool InStock { get; set; }

        public decimal Subtotal
        {
            get { return (Quantity*Price); }
        }

        public string ItemId { get;  set; }

        public string Name { get;  set; }

        public decimal Price { get;  set; }
    }
}